package cn.elwy.rcp.ui.table.listener;

import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.jface.viewers.IDoubleClickListener;
import org.eclipse.jface.viewers.IStructuredSelection;

public class OpenListener implements IDoubleClickListener, Runnable {
  private int index;
  private String id;
  private String name;

  protected IStructuredSelection selection;

  public void doubleClick(DoubleClickEvent event) {
  }

  @Override
  public void run() {

  }

  public boolean isAvailable() {
    return false;
  }

  public int getIndex() {
    return index;
  }

  public void setIndex(int index) {
    this.index = index;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public IStructuredSelection getSelection() {
    return selection;
  }

  public void setSelection(IStructuredSelection selection) {
    this.selection = selection;
  }

}
